<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>PHP If...Else...ElseIf</title>
</head>
<body>
<h1>PHP If...Else...ElseIf</h1>

<div>
    <h3>PHP - The if...elseif....else Statement</h3>
    <?php
    $t = date("H");
    var_dump($t);

    if ($t < "10") {
        echo "Have a good morning!";
    } elseif ($t < "20") {
        echo "Have a good day!";
    } else {
        echo "Have a good night!";
    }
    ?>

</div>
</body>
</html>